﻿
using WebAssistant.BusinessLogic;
using WebAssistant.WinUI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Assistant
{
    public partial class FormLock : UILockScreen
    {
        public FormLock()
        {
            InitializeComponent();
            this.SubText = Shared.Version;
        }

        private void FormLock_ButtonUnlockClick(object sender, EventArgs e)
        {
            if (Password == DataAccess.GetSettingByKey("assistant.password"))
            {
                IsUnlock = true;
                Close();
            }
            else
            {
                ShowErrorTip("密码错误!");
            }
        }
    }
}
